package com.zlzsy.app.base.ui.anko

import android.view.View
import android.view.ViewManager
import de.hdodenhof.circleimageview.CircleImageView
import org.jetbrains.anko.custom.ankoView

/**
 * Created by niantuo on 2017/11/6.
 * anko 的自定义view
 */
inline fun ViewManager.dividerLine(): View = dividerLine { }

inline fun ViewManager.dividerLine(init: View.() -> Unit): View {
    return ankoView({ View(it) }, 0, init)
}



inline fun ViewManager.circleImageView(init: CircleImageView.() -> Unit): CircleImageView {
    return ankoView({ CircleImageView(it) }, 0, init)
}